﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ZOVNP.WinView
{
    internal abstract class SellerTabPage : TabPage
    {
        protected SellerMainControl _mainControl;
        private bool _initialized;

        public SellerTabPage(SellerMainControl mainControl)
        {
            _mainControl = mainControl;
        }

        public void Initialize()
        {
            if(!_initialized)
            {
                InitializeInner();
                _initialized = true;
            }
        }

        protected abstract void InitializeInner();
        public abstract void Save();
        public abstract void Add();
        public abstract void Edit();
        public abstract void Delete();
        public abstract void RefreshData();
        public abstract void Print();
    }
}
